package com.jci.xyf.hellofx;

import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.fxml.FXMLLoader;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.PasswordField;
import javafx.scene.control.TextField;
import javafx.scene.image.Image;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.VBox;
import javafx.scene.text.Font;
import javafx.scene.text.FontWeight;
import javafx.scene.text.Text;
import javafx.stage.Stage;

import java.io.IOException;
import java.net.URL;
import java.util.Objects;

public class MainApplication extends Application {

    @Override
    public void start(Stage stage) throws IOException {
        Parent root=FXMLLoader.load(new URL("file:src/main/resources/com/jci/xyf/hellofx/mainscenne.fxml"));
            Scene scene = new Scene(root, 500, 420);
            stage.getIcons().add(new Image("File:C:\\Users\\zhonghejun\\Desktop\\inclass\\javaJ基于Mysql的javaFX开发\\practical-toolbox\\src\\main\\java\\com\\jci\\xyf\\hellofx\\icon.png"));
            stage.setTitle("EASY226");
            stage.setScene(scene);
            stage.show();
            }
    public static void main(String[] args) {
        launch();
    }
}